Piwik\Plugins\ScheduledReports\API C

Total Complexity 115
Dependencies 28
Dependents 8
Total lines 998
Lines of code 530
Logical lines of code 289
Comment lines 259
Methods 30
Properties 3

Methods 30

Method Rating Maintainability Complexity Lines of code
generateReport()
C
26
26 160
getReports()
B
39 16 60
sendReport()
A
41 7 58
validateEvolutionPeriod()
S
59 8 13
validateReportParameters()
S
56 6 17
validateRequestedReports()
S
57 5 16
validateIdSegment()
S
63 6 9
checkUserHasViewPermission()
S
62 4 11
validateReportHour()
S
71 4 5
getSegment()
S
65 4 9
addReport()
S
51 2 27
updateReport()
S
51 2 26
getReportSubjectAndReportTitle()
S
62 3 11
ensureLanguageSetForUser()
S
63 2 11
validateReportFormat()
S
63 2 11
validateReportType()
S
66 2 8
checkSinglePeriod()
S
72 2 5
validateReportPeriod()
S
68 2 6
validateCommonReportAttributes()
S
65 1 9
validateAndTruncateDescription()
S
78 1 3
getReportMetadata()
S
68 1 8
allowMultipleReports()
S
68 1 8
getReportTypes()
S
73 1 5
getReportFormats()
S
68 1 8
getReportRecipients()
S
72 1 5
getModel()
S
81 1 3
isSegmentEditorActivated()
S
78 1 3
getAttachments()
S
79 1 3
deleteReport()
S
65 1 9
__construct()
S
81 1 3